export const deepCopy = (data: any) => {
    try {
        return JSON.parse(JSON.stringify(data));
    } catch (e) {
        cc.error(e);
    }
    return null;
}